﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Estimate.Common.DataFileCopyer
{
    public class RainForeCopyer: BaseDataFileCopyer
    {
        private string _datePath;
        public RainForeCopyer(string _baseDir): base(_baseDir)
        {
            _datePath = _baseDir + DateTime.Now.Year + "/";
            CheckAndCreateDirecotry(_datePath);
        }

        public override string[] getCopyDir(string path)
        {
            string filename = System.IO.Path.GetFileName(path);
            return new string[] { _baseDir + filename, _datePath + filename };
        }
    }
}
